package com.sdruixinggroup.mondayb2b.models;

import java.util.List;

/**
 * Created by 00029935 on 2017/12/9.
 */

public class SearchResult {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1512804844
     * goods : {"page":1,"data":[{"goods_id":2,"type":1,"name":"超级金克拉1号","goods_sn":"123300000001","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2,"special_price":0,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":3}],"page_size":10,"total_records":1,"total_pages":1}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private GoodsBean goods;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public static class GoodsBean {
        /**
         * page : 1
         * data : [{"goods_id":2,"type":1,"name":"超级金克拉1号","goods_sn":"123300000001","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png","price":2,"special_price":0,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":3}]
         * page_size : 10
         * total_records : 1
         * total_pages : 1
         */

        private int page;
        private int page_size;
        private int total_records;
        private int total_pages;
        private List<DataBean> data;

        public int getPage() {
            return page;
        }

        public void setPage(int page) {
            this.page = page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_records() {
            return total_records;
        }

        public void setTotal_records(int total_records) {
            this.total_records = total_records;
        }

        public int getTotal_pages() {
            return total_pages;
        }

        public void setTotal_pages(int total_pages) {
            this.total_pages = total_pages;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean {
            /**
             * goods_id : 2
             * type : 1
             * name : 超级金克拉1号
             * goods_sn : 123300000001
             * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/fc914e996f3287ca779204e2304e3ae6.png
             * price : 2
             * special_price : 0
             * stock : 0
             * praise_rate : 0
             * comment_count : 0
             * saled_count : 3
             */

            private int goods_id;
            private int type;
            private String name;
            private String goods_sn;
            private String thumb;
            private int price;
            private int special_price;
            private int stock;
            private int praise_rate;
            private int comment_count;
            private int saled_count;

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getGoods_sn() {
                return goods_sn;
            }

            public void setGoods_sn(String goods_sn) {
                this.goods_sn = goods_sn;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public int getSpecial_price() {
                return special_price;
            }

            public void setSpecial_price(int special_price) {
                this.special_price = special_price;
            }

            public int getStock() {
                return stock;
            }

            public void setStock(int stock) {
                this.stock = stock;
            }

            public int getPraise_rate() {
                return praise_rate;
            }

            public void setPraise_rate(int praise_rate) {
                this.praise_rate = praise_rate;
            }

            public int getComment_count() {
                return comment_count;
            }

            public void setComment_count(int comment_count) {
                this.comment_count = comment_count;
            }

            public int getSaled_count() {
                return saled_count;
            }

            public void setSaled_count(int saled_count) {
                this.saled_count = saled_count;
            }
        }
    }
}
